import * as types from './types'
// import { AXIOS_DEFAULT_CONFIG } from '@/config'

const mutations = {
	//登陆
	[types.LOGINACTION](state,res) {
		state.auth.sid = res.data.sid;
		state.auth.IsLogin = true;
	},
	//显示 隐藏loading图标
	[types.SHOWLOADING](state) {
		state.loading = true;
	},
	[types.HIDELOADING](state) {
		state.loading = false;
	},
	//显示 隐藏dialogs
	[types.SETDIALOGS](state,res) {
		state.dialogs.status = res.status;
		state.dialogs.step = res.step;
		state.dialogs.clearInterval = res.clearInterval;
		state.dialogs.markTaskId = res.markTaskId;
		state.dialogs.isKeydownPrepare = res.isKeydownPrepare;
	}
}

export default mutations